STU 3 Candidate

This page is part of the FHIR Specification (v1.4.0: STU 3 Ballot 3). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions

B.4.1 StructureDefinition: SDC-Questionnaire

The official URL for this profile is:

http://hl7.org/fhir/StructureDefinition/sdc-questionnaire

Defines how Questionnaire is used to reflect form definitions to be used within the ONC's Structured Data Capture standard.

This profile was published on Mon, Apr 21, 2014 00:00+1000 as a draft by Health Level Seven International (Orders and Observations - Structured Data Capture).

B.4.1.1 Formal Views of Profile Content

Description of Profiles, Differentials, Snapshots, and how the XML and JSON presentations work.

This structure is derived from Questionnaire.

Summary

Mandatory: 3 elements (+2 nested mandatory elements)
Must-Support: 48 elements

Extensions

This structure refers to these extensions:

This structure is derived from Questionnaire.

NameFlagsCard.TypeDescription & Constraintsdoco
.. Questionnaire 0..*Questionnaire
... url S1..1uri
... identifier S0..*Identifier
... version S0..1string
... status S1..1code
... date S1..1dateTime
... publisher S0..1string
... useContext S0..*CodeableConcept
... title S1..1string
.... style 0..1stringHtml style value
URL: http://hl7.org/fhir/StructureDefinition/style
.... markup 0..1stringString equivalent with html markup
URL: http://hl7.org/fhir/StructureDefinition/markup
... concept S0..1Coding
... subjectType S0..*code
... item S0..*BackboneElement
.... linkId S1..1string
.... concept S0..1Coding
.... prefix S0..1string
..... style 0..1stringHtml style value
URL: http://hl7.org/fhir/StructureDefinition/style
..... markup 0..1stringString equivalent with html markup
URL: http://hl7.org/fhir/StructureDefinition/markup
.... text S0..1string
..... style 0..1stringHtml style value
URL: http://hl7.org/fhir/StructureDefinition/style
..... markup 0..1stringString equivalent with html markup
URL: http://hl7.org/fhir/StructureDefinition/markup
.... type S1..1code
.... enableWhen S0..*BackboneElement
..... question S1..1string
..... answered S0..1boolean
..... answer[x] S0..1boolean, decimal, integer, date, dateTime, instant, time, string, uri, Attachment, Coding, Quantity, Reference(Resource)
.... required S0..1boolean
.... repeats S0..1boolean
.... readOnly S0..1boolean
.... maxLength S0..1integer
.... options S0..1Reference(ValueSet)
.... option S0..*BackboneElement
..... value[x] S1..1integer, date, time, string, Coding
..... questionnaire-optionPrefix S0..1stringE.g. "(a)", "1.", etc.
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-optionPrefix
.... initial[x] S0..1boolean, decimal, integer, date, dateTime, instant, time, string, uri, Attachment, Coding, Quantity, Reference(Resource)
.... item S0..*
.... questionnaire-minOccurs S0..1integerMinimum repetitions
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-minOccurs
.... questionnaire-maxOccurs S0..1integerMaximum repetitions
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-maxOccurs
.... sdc-questionnaire-optionalDisplay 0..1booleanCan suppress from display to user
URL: http://hl7.org/fhir/StructureDefinition/sdc-questionnaire-optionalDisplay
.... questionnaire-hidden S0..1booleanDon't display to user
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-hidden
.... questionnaire-itemControl S0..1CodeableConceptE.g. Fly-over, Table, Checkbox, Combo-box, Lookup, etc.
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl
.... questionnaire-choiceOrientation 0..1codehorizontal | vertical
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-choiceOrientation
.... minLength S0..1integerAt least this many characters
URL: http://hl7.org/fhir/StructureDefinition/minLength
.... regex S0..1stringRegular expression pattern
URL: http://hl7.org/fhir/StructureDefinition/regex
.... entryFormat S0..1stringUser prompt for format
URL: http://hl7.org/fhir/StructureDefinition/entryFormat
.... minValue S0..1date, dateTime, time, instant, decimal, integerMust be >= this value
URL: http://hl7.org/fhir/StructureDefinition/minValue
.... maxValue S0..1date, dateTime, time, instant, decimal, integerMust be <= this value
URL: http://hl7.org/fhir/StructureDefinition/maxValue
.... maxDecimalPlaces S0..1integerMaximum digits after decimal
URL: http://hl7.org/fhir/StructureDefinition/maxDecimalPlaces
.... mimeType S0..1codeType of attachment
URL: http://hl7.org/fhir/StructureDefinition/mimeType
.... maxSize 0..1decimalMax size in MB
URL: http://hl7.org/fhir/StructureDefinition/maxSize
.... questionnaire-unit S0..1CodingUnit for numeric answer
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-unit
.... questionnaire-deReference S0..1Reference(DataElement)Implemented CDE
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-deReference
.... questionnaire-allowedResource S0..*codeAllowed resource for reference
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-allowedResource
.... questionnaire-displayCategory S0..1CodeableConceptPurpose of rendered text
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-displayCategory
... sdc-questionnaire-endpoint S0..*uriWhere to send answers
URL: http://hl7.org/fhir/StructureDefinition/sdc-questionnaire-endpoint
... sdc-questionnaire-provenanceSignatureRequred S0..1booleanIs associated Provenance needed?
URL: http://hl7.org/fhir/StructureDefinition/sdc-questionnaire-provenanceSignatureRequred
... styleSensitive S0..1booleanAre styles important for processing?
URL: http://hl7.org/fhir/StructureDefinition/styleSensitive
... questionnaire-deMap 0..1Reference(ConceptMap)Map linking questions to DataElements
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-deMap

doco Documentation for this format
NameFlagsCard.TypeDescription & Constraintsdoco
.. Questionnaire I0..*QuestionnaireA structured set of questions
que-2: The link ids for groups and questions must be unique within the questionnaire
... meta 0..1MetaMetadata about the resource
... implicitRules ?! 0..1uriA set of rules under which this content was created
... language 0..1codeLanguage of the resource content
Binding: IETF BCP-47 (required)
... text I0..1NarrativeText summary of the resource, for human interpretation
... contained 0..*ResourceContained, inline Resources
... sdc-questionnaire-endpoint S0..*uriExtension
URL: http://hl7.org/fhir/StructureDefinition/sdc-questionnaire-endpoint
... sdc-questionnaire-provenanceSignatureRequred S0..1booleanExtension
URL: http://hl7.org/fhir/StructureDefinition/sdc-questionnaire-provenanceSignatureRequred
... styleSensitive S0..1booleanExtension
URL: http://hl7.org/fhir/StructureDefinition/styleSensitive
... questionnaire-deMap 0..1Reference(ConceptMap)Extension
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-deMap
... modifierExtension ?!0..*ExtensionExtensions that cannot be ignored
... url S 1..1uriGlobally unique logical identifier for questionnaire
... identifier S 0..*IdentifierExternal identifiers for this questionnaire
... version S 0..1stringLogical identifier for this version of Questionnaire
... status ?! S1..1codedraft | published | retired
Binding: QuestionnaireStatus (required)
... date S 1..1dateTimeDate this version was authored
... publisher S 0..1stringOrganization/individual who designed the questionnaire
... telecom 0..*ContactPointContact information of the publisher
... useContext S 0..*CodeableConceptQuestionnaire intends to support these contexts
Binding: Context of Use ValueSet (extensible)
... title S 1..1stringName for the questionnaire
.... style 0..1stringExtension
URL: http://hl7.org/fhir/StructureDefinition/style
.... markup 0..1stringExtension
URL: http://hl7.org/fhir/StructureDefinition/markup
.... value 0..1Primitive value for string
... concept S 0..1CodingConcept that represents the overall questionnaire
Binding: Questionnaire Question Codes (example)
... subjectType S 0..*codeResource that can be subject of QuestionnaireResponse
Binding: ResourceType (required)
... item S I0..*BackboneElementQuestions and sections within the Questionnaire
que-10: Maximum length can only be declared for simple question types
que-1: Group items must have nested items, display items cannot have nested items
que-3: Display items cannot have a "concept" asserted
que-5: Only 'choice' items can have options
que-4: A question cannot have both option and options
que-6: Required and repeat aren't permitted for display items
que-9: Read-only can't be specified for "display" items
que-8: Default values can't be specified for groups or display items
.... questionnaire-minOccurs S I0..1integerExtension
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-minOccurs
inv-3: minOccurs can't exist for display items
inv-1: minOccurs can't be more than one if required is false
.... questionnaire-maxOccurs S I0..1integerExtension
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-maxOccurs
inv-2: maxOccurs can't be more than one if repeats is false
inv-4: maxOccurs can't exist for display items
.... sdc-questionnaire-optionalDisplay 0..1booleanExtension
URL: http://hl7.org/fhir/StructureDefinition/sdc-questionnaire-optionalDisplay
.... questionnaire-hidden S0..1booleanExtension
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-hidden
.... questionnaire-itemControl S0..1CodeableConceptExtension
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl
.... questionnaire-choiceOrientation I0..1codeExtension
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-choiceOrientation
inv-6: choiceOrientation can only be present on elements of type "choice" or "open-choice"
.... minLength S0..1integerExtension
URL: http://hl7.org/fhir/StructureDefinition/minLength
.... regex S0..1stringExtension
URL: http://hl7.org/fhir/StructureDefinition/regex
.... entryFormat S0..1stringExtension
URL: http://hl7.org/fhir/StructureDefinition/entryFormat
.... minValue S0..1date, dateTime, time, instant, decimal, integerExtension
URL: http://hl7.org/fhir/StructureDefinition/minValue
.... maxValue S0..1date, dateTime, time, instant, decimal, integerExtension
URL: http://hl7.org/fhir/StructureDefinition/maxValue
.... maxDecimalPlaces S0..1integerExtension
URL: http://hl7.org/fhir/StructureDefinition/maxDecimalPlaces
.... mimeType S0..1codeExtension
URL: http://hl7.org/fhir/StructureDefinition/mimeType
.... maxSize 0..1decimalExtension
URL: http://hl7.org/fhir/StructureDefinition/maxSize
.... questionnaire-unit S I0..1CodingExtension
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-unit
inv-16: Lookup Questionnaire can only be specified for questions with a type of "integer" or "decimal"
.... questionnaire-deReference S I0..1Reference(DataElement)Extension
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-deReference
inv-9: Data Element references can't be specified for "display" items
.... questionnaire-allowedResource S I0..*codeExtension
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-allowedResource
inv-10: Allowed resource can only be specified for items of type 'reference'
.... questionnaire-displayCategory S I0..1CodeableConceptExtension
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-displayCategory
inv-11: Display category can only be specified for items of type display
.... modifierExtension ?! 0..*ExtensionExtensions that cannot be ignored
.... linkId S1..1stringTo link questionnaire with questionnaire response
.... concept S I0..1CodingConcept that represents this item within in a questionnaire
Binding: Questionnaire Question Codes (example)
.... prefix S0..1stringE.g. "1(a)", "2.5.3"
..... style 0..1stringExtension
URL: http://hl7.org/fhir/StructureDefinition/style
..... markup 0..1stringExtension
URL: http://hl7.org/fhir/StructureDefinition/markup
..... value 0..1Primitive value for string
.... text S 0..1stringPrimary text for the item
..... style 0..1stringExtension
URL: http://hl7.org/fhir/StructureDefinition/style
..... markup 0..1stringExtension
URL: http://hl7.org/fhir/StructureDefinition/markup
..... value 0..1Primitive value for string
.... type S1..1codegroup | display | boolean | decimal | integer | date | dateTime +
Binding: QuestionnaireItemType (required)
.... enableWhen ?! SI0..*BackboneElementOnly allow data when:
que-7: enableWhen must contain either an 'answer' or an 'answered' element
..... extension 0..*ExtensionAdditional Content defined by implementations
..... modifierExtension ?! 0..*ExtensionExtensions that cannot be ignored
..... question S1..1stringQuestion that determines whether item is enabled
..... answered S I0..1booleanEnable when answered or not
..... answer[x] S I0..1boolean, decimal, integer, date, dateTime, instant, time, string, uri, Attachment, Coding, Quantity, Reference(Resource)Value question must have
.... required S I0..1booleanWhether the item must be included in data results
.... repeats S I0..1booleanWhether the item may repeat
.... readOnly S I0..1booleanDon't allow human editing
.... maxLength S I0..1integerNo more than this many characters
.... options S I0..1Reference(ValueSet)Valueset containing permitted answers
.... option S I0..*BackboneElementPermitted answer
..... questionnaire-optionPrefix S0..1stringExtension
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-optionPrefix
..... modifierExtension ?! 0..*ExtensionExtensions that cannot be ignored
..... value[x] S1..1integer, date, time, string, CodingAnswer value
Binding: Questionnaire Answer Codes (example)
.... initial[x] S I0..1boolean, decimal, integer, date, dateTime, instant, time, string, uri, Attachment, Coding, Quantity, Reference(Resource)Initial presumed answer for question
.... item S I0..*Unknown reference to #item
Nested questionnaire items

doco Documentation for this format

todo

This structure is derived from Questionnaire.

Summary

Mandatory: 3 elements (+2 nested mandatory elements)
Must-Support: 48 elements

Extensions

This structure refers to these extensions:

Differential View

This structure is derived from Questionnaire.

NameFlagsCard.TypeDescription & Constraintsdoco
.. Questionnaire 0..*Questionnaire
... url S1..1uri
... identifier S0..*Identifier
... version S0..1string
... status S1..1code
... date S1..1dateTime
... publisher S0..1string
... useContext S0..*CodeableConcept
... title S1..1string
.... style 0..1stringHtml style value
URL: http://hl7.org/fhir/StructureDefinition/style
.... markup 0..1stringString equivalent with html markup
URL: http://hl7.org/fhir/StructureDefinition/markup
... concept S0..1Coding
... subjectType S0..*code
... item S0..*BackboneElement
.... linkId S1..1string
.... concept S0..1Coding
.... prefix S0..1string
..... style 0..1stringHtml style value
URL: http://hl7.org/fhir/StructureDefinition/style
..... markup 0..1stringString equivalent with html markup
URL: http://hl7.org/fhir/StructureDefinition/markup
.... text S0..1string
..... style 0..1stringHtml style value
URL: http://hl7.org/fhir/StructureDefinition/style
..... markup 0..1stringString equivalent with html markup
URL: http://hl7.org/fhir/StructureDefinition/markup
.... type S1..1code
.... enableWhen S0..*BackboneElement
..... question S1..1string
..... answered S0..1boolean
..... answer[x] S0..1boolean, decimal, integer, date, dateTime, instant, time, string, uri, Attachment, Coding, Quantity, Reference(Resource)
.... required S0..1boolean
.... repeats S0..1boolean
.... readOnly S0..1boolean
.... maxLength S0..1integer
.... options S0..1Reference(ValueSet)
.... option S0..*BackboneElement
..... value[x] S1..1integer, date, time, string, Coding
..... questionnaire-optionPrefix S0..1stringE.g. "(a)", "1.", etc.
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-optionPrefix
.... initial[x] S0..1boolean, decimal, integer, date, dateTime, instant, time, string, uri, Attachment, Coding, Quantity, Reference(Resource)
.... item S0..*
.... questionnaire-minOccurs S0..1integerMinimum repetitions
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-minOccurs
.... questionnaire-maxOccurs S0..1integerMaximum repetitions
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-maxOccurs
.... sdc-questionnaire-optionalDisplay 0..1booleanCan suppress from display to user
URL: http://hl7.org/fhir/StructureDefinition/sdc-questionnaire-optionalDisplay
.... questionnaire-hidden S0..1booleanDon't display to user
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-hidden
.... questionnaire-itemControl S0..1CodeableConceptE.g. Fly-over, Table, Checkbox, Combo-box, Lookup, etc.
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl
.... questionnaire-choiceOrientation 0..1codehorizontal | vertical
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-choiceOrientation
.... minLength S0..1integerAt least this many characters
URL: http://hl7.org/fhir/StructureDefinition/minLength
.... regex S0..1stringRegular expression pattern
URL: http://hl7.org/fhir/StructureDefinition/regex
.... entryFormat S0..1stringUser prompt for format
URL: http://hl7.org/fhir/StructureDefinition/entryFormat
.... minValue S0..1date, dateTime, time, instant, decimal, integerMust be >= this value
URL: http://hl7.org/fhir/StructureDefinition/minValue
.... maxValue S0..1date, dateTime, time, instant, decimal, integerMust be <= this value
URL: http://hl7.org/fhir/StructureDefinition/maxValue
.... maxDecimalPlaces S0..1integerMaximum digits after decimal
URL: http://hl7.org/fhir/StructureDefinition/maxDecimalPlaces
.... mimeType S0..1codeType of attachment
URL: http://hl7.org/fhir/StructureDefinition/mimeType
.... maxSize 0..1decimalMax size in MB
URL: http://hl7.org/fhir/StructureDefinition/maxSize
.... questionnaire-unit S0..1CodingUnit for numeric answer
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-unit
.... questionnaire-deReference S0..1Reference(DataElement)Implemented CDE
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-deReference
.... questionnaire-allowedResource S0..*codeAllowed resource for reference
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-allowedResource
.... questionnaire-displayCategory S0..1CodeableConceptPurpose of rendered text
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-displayCategory
... sdc-questionnaire-endpoint S0..*uriWhere to send answers
URL: http://hl7.org/fhir/StructureDefinition/sdc-questionnaire-endpoint
... sdc-questionnaire-provenanceSignatureRequred S0..1booleanIs associated Provenance needed?
URL: http://hl7.org/fhir/StructureDefinition/sdc-questionnaire-provenanceSignatureRequred
... styleSensitive S0..1booleanAre styles important for processing?
URL: http://hl7.org/fhir/StructureDefinition/styleSensitive
... questionnaire-deMap 0..1Reference(ConceptMap)Map linking questions to DataElements
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-deMap

doco Documentation for this format

Snapshot View

NameFlagsCard.TypeDescription & Constraintsdoco
.. Questionnaire I0..*QuestionnaireA structured set of questions
que-2: The link ids for groups and questions must be unique within the questionnaire
... meta 0..1MetaMetadata about the resource
... implicitRules ?! 0..1uriA set of rules under which this content was created
... language 0..1codeLanguage of the resource content
Binding: IETF BCP-47 (required)
... text I0..1NarrativeText summary of the resource, for human interpretation
... contained 0..*ResourceContained, inline Resources
... sdc-questionnaire-endpoint S0..*uriExtension
URL: http://hl7.org/fhir/StructureDefinition/sdc-questionnaire-endpoint
... sdc-questionnaire-provenanceSignatureRequred S0..1booleanExtension
URL: http://hl7.org/fhir/StructureDefinition/sdc-questionnaire-provenanceSignatureRequred
... styleSensitive S0..1booleanExtension
URL: http://hl7.org/fhir/StructureDefinition/styleSensitive
... questionnaire-deMap 0..1Reference(ConceptMap)Extension
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-deMap
... modifierExtension ?!0..*ExtensionExtensions that cannot be ignored
... url S 1..1uriGlobally unique logical identifier for questionnaire
... identifier S 0..*IdentifierExternal identifiers for this questionnaire
... version S 0..1stringLogical identifier for this version of Questionnaire
... status ?! S1..1codedraft | published | retired
Binding: QuestionnaireStatus (required)
... date S 1..1dateTimeDate this version was authored
... publisher S 0..1stringOrganization/individual who designed the questionnaire
... telecom 0..*ContactPointContact information of the publisher
... useContext S 0..*CodeableConceptQuestionnaire intends to support these contexts
Binding: Context of Use ValueSet (extensible)
... title S 1..1stringName for the questionnaire
.... style 0..1stringExtension
URL: http://hl7.org/fhir/StructureDefinition/style
.... markup 0..1stringExtension
URL: http://hl7.org/fhir/StructureDefinition/markup
.... value 0..1Primitive value for string
... concept S 0..1CodingConcept that represents the overall questionnaire
Binding: Questionnaire Question Codes (example)
... subjectType S 0..*codeResource that can be subject of QuestionnaireResponse
Binding: ResourceType (required)
... item S I0..*BackboneElementQuestions and sections within the Questionnaire
que-10: Maximum length can only be declared for simple question types
que-1: Group items must have nested items, display items cannot have nested items
que-3: Display items cannot have a "concept" asserted
que-5: Only 'choice' items can have options
que-4: A question cannot have both option and options
que-6: Required and repeat aren't permitted for display items
que-9: Read-only can't be specified for "display" items
que-8: Default values can't be specified for groups or display items
.... questionnaire-minOccurs S I0..1integerExtension
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-minOccurs
inv-3: minOccurs can't exist for display items
inv-1: minOccurs can't be more than one if required is false
.... questionnaire-maxOccurs S I0..1integerExtension
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-maxOccurs
inv-2: maxOccurs can't be more than one if repeats is false
inv-4: maxOccurs can't exist for display items
.... sdc-questionnaire-optionalDisplay 0..1booleanExtension
URL: http://hl7.org/fhir/StructureDefinition/sdc-questionnaire-optionalDisplay
.... questionnaire-hidden S0..1booleanExtension
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-hidden
.... questionnaire-itemControl S0..1CodeableConceptExtension
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl
.... questionnaire-choiceOrientation I0..1codeExtension
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-choiceOrientation
inv-6: choiceOrientation can only be present on elements of type "choice" or "open-choice"
.... minLength S0..1integerExtension
URL: http://hl7.org/fhir/StructureDefinition/minLength
.... regex S0..1stringExtension
URL: http://hl7.org/fhir/StructureDefinition/regex
.... entryFormat S0..1stringExtension
URL: http://hl7.org/fhir/StructureDefinition/entryFormat
.... minValue S0..1date, dateTime, time, instant, decimal, integerExtension
URL: http://hl7.org/fhir/StructureDefinition/minValue
.... maxValue S0..1date, dateTime, time, instant, decimal, integerExtension
URL: http://hl7.org/fhir/StructureDefinition/maxValue
.... maxDecimalPlaces S0..1integerExtension
URL: http://hl7.org/fhir/StructureDefinition/maxDecimalPlaces
.... mimeType S0..1codeExtension
URL: http://hl7.org/fhir/StructureDefinition/mimeType
.... maxSize 0..1decimalExtension
URL: http://hl7.org/fhir/StructureDefinition/maxSize
.... questionnaire-unit S I0..1CodingExtension
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-unit
inv-16: Lookup Questionnaire can only be specified for questions with a type of "integer" or "decimal"
.... questionnaire-deReference S I0..1Reference(DataElement)Extension
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-deReference
inv-9: Data Element references can't be specified for "display" items
.... questionnaire-allowedResource S I0..*codeExtension
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-allowedResource
inv-10: Allowed resource can only be specified for items of type 'reference'
.... questionnaire-displayCategory S I0..1CodeableConceptExtension
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-displayCategory
inv-11: Display category can only be specified for items of type display
.... modifierExtension ?! 0..*ExtensionExtensions that cannot be ignored
.... linkId S1..1stringTo link questionnaire with questionnaire response
.... concept S I0..1CodingConcept that represents this item within in a questionnaire
Binding: Questionnaire Question Codes (example)
.... prefix S0..1stringE.g. "1(a)", "2.5.3"
..... style 0..1stringExtension
URL: http://hl7.org/fhir/StructureDefinition/style
..... markup 0..1stringExtension
URL: http://hl7.org/fhir/StructureDefinition/markup
..... value 0..1Primitive value for string
.... text S 0..1stringPrimary text for the item
..... style 0..1stringExtension
URL: http://hl7.org/fhir/StructureDefinition/style
..... markup 0..1stringExtension
URL: http://hl7.org/fhir/StructureDefinition/markup
..... value 0..1Primitive value for string
.... type S1..1codegroup | display | boolean | decimal | integer | date | dateTime +
Binding: QuestionnaireItemType (required)
.... enableWhen ?! SI0..*BackboneElementOnly allow data when:
que-7: enableWhen must contain either an 'answer' or an 'answered' element
..... extension 0..*ExtensionAdditional Content defined by implementations
..... modifierExtension ?! 0..*ExtensionExtensions that cannot be ignored
..... question S1..1stringQuestion that determines whether item is enabled
..... answered S I0..1booleanEnable when answered or not
..... answer[x] S I0..1boolean, decimal, integer, date, dateTime, instant, time, string, uri, Attachment, Coding, Quantity, Reference(Resource)Value question must have
.... required S I0..1booleanWhether the item must be included in data results
.... repeats S I0..1booleanWhether the item may repeat
.... readOnly S I0..1booleanDon't allow human editing
.... maxLength S I0..1integerNo more than this many characters
.... options S I0..1Reference(ValueSet)Valueset containing permitted answers
.... option S I0..*BackboneElementPermitted answer
..... questionnaire-optionPrefix S0..1stringExtension
URL: http://hl7.org/fhir/StructureDefinition/questionnaire-optionPrefix
..... modifierExtension ?! 0..*ExtensionExtensions that cannot be ignored
..... value[x] S1..1integer, date, time, string, CodingAnswer value
Binding: Questionnaire Answer Codes (example)
.... initial[x] S I0..1boolean, decimal, integer, date, dateTime, instant, time, string, uri, Attachment, Coding, Quantity, Reference(Resource)Initial presumed answer for question
.... item S I0..*Unknown reference to #item
Nested questionnaire items

doco Documentation for this format

XML Template

JSON Template

todo

 

Other representations of profile: Schematron

B.4.1.2 Terminology Bindings

PathNameConformanceValueSet
Questionnaire.language?extrequiredhttp://tools.ietf.org/html/bcp47
Questionnaire.statusQuestionnaireStatusrequiredQuestionnaireStatus
Questionnaire.useContextContext of Use ValueSetextensibleContext of Use ValueSet
Questionnaire.conceptQuestionnaire Question CodesexampleQuestionnaire Question Codes
Questionnaire.subjectTypeResourceTyperequiredResourceType
Questionnaire.item.conceptQuestionnaire Question CodesexampleQuestionnaire Question Codes
Questionnaire.item.typeQuestionnaireItemTyperequiredQuestionnaireItemType
Questionnaire.item.option.value[x]Questionnaire Answer CodesexampleQuestionnaire Answer Codes

B.4.1.3 Constraints

IdPathDetailsRequirements
que-2QuestionnaireThe link ids for groups and questions must be unique within the questionnaire
XPath: count(descendant::f:linkId/@value)=count(distinct-values(descendant::f:linkId/@value))
que-10Questionnaire.itemMaximum length can only be declared for simple question types
XPath: f:type/@value=('boolean', 'decimal', 'integer', 'open-choice', 'string', 'text', 'url') or not(f:maxLength)
que-1Questionnaire.itemGroup items must have nested items, display items cannot have nested items
XPath: not((f:type/@value='group' and not(f:item)) or (f:type/@value='display' and f:item))
que-3Questionnaire.itemDisplay items cannot have a "concept" asserted
XPath: not(f:type/@value='display' and f:concept)
que-5Questionnaire.itemOnly 'choice' items can have options
XPath: f:type/@value=('choice','open-choice') or not(f:option or f:options)
que-4Questionnaire.itemA question cannot have both option and options
XPath: not(f:options and f:option)
que-6Questionnaire.itemRequired and repeat aren't permitted for display items
XPath: not(f:type/@value='display' and (f:required or f:repeats))
que-9Questionnaire.itemRead-only can't be specified for "display" items
XPath: not(f:type/@value='display' and f:readOnly)
que-8Questionnaire.itemDefault values can't be specified for groups or display items
XPath: not(f:type/@value=('group', 'display') and f:*[starts-with(local-name(.), 'initial')])
inv-11Questionnaire.item.extensionDisplay category can only be specified for items of type display
XPath: parent::*/f:type/@value='display'
inv-11Questionnaire.item.extensionDisplay category can only be specified for items of type display
XPath: parent::*/f:type/@value='display'
inv-11Questionnaire.item.extensionDisplay category can only be specified for items of type display
XPath: parent::*/f:type/@value='display'
inv-11Questionnaire.item.extensionDisplay category can only be specified for items of type display
XPath: parent::*/f:type/@value='display'
inv-11Questionnaire.item.extensionDisplay category can only be specified for items of type display
XPath: parent::*/f:type/@value='display'
inv-11Questionnaire.item.extensionDisplay category can only be specified for items of type display
XPath: parent::*/f:type/@value='display'
inv-11Questionnaire.item.extensionDisplay category can only be specified for items of type display
XPath: parent::*/f:type/@value='display'
inv-11Questionnaire.item.extensionDisplay category can only be specified for items of type display
XPath: parent::*/f:type/@value='display'
inv-11Questionnaire.item.extensionDisplay category can only be specified for items of type display
XPath: parent::*/f:type/@value='display'
inv-11Questionnaire.item.extensionDisplay category can only be specified for items of type display
XPath: parent::*/f:type/@value='display'
inv-11Questionnaire.item.extensionDisplay category can only be specified for items of type display
XPath: parent::*/f:type/@value='display'
inv-11Questionnaire.item.extensionDisplay category can only be specified for items of type display
XPath: parent::*/f:type/@value='display'
inv-11Questionnaire.item.extensionDisplay category can only be specified for items of type display
XPath: parent::*/f:type/@value='display'
inv-11Questionnaire.item.extensionDisplay category can only be specified for items of type display
XPath: parent::*/f:type/@value='display'
inv-11Questionnaire.item.extensionDisplay category can only be specified for items of type display
XPath: parent::*/f:type/@value='display'
inv-11Questionnaire.item.extensionDisplay category can only be specified for items of type display
XPath: parent::*/f:type/@value='display'
inv-11Questionnaire.item.extensionDisplay category can only be specified for items of type display
XPath: parent::*/f:type/@value='display'
inv-11Questionnaire.item.extensionDisplay category can only be specified for items of type display
XPath: parent::*/f:type/@value='display'
inv-11Questionnaire.item.extensionDisplay category can only be specified for items of type display
XPath: parent::*/f:type/@value='display'
que-7Questionnaire.item.enableWhenenableWhen must contain either an 'answer' or an 'answered' element
XPath: count(*[starts-with(local-name(.), 'answer')]|answered) = 1
.